
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	<ui:composition>
		<table id="search-main" cellpadding="0" cellspacing="0">
	    	<tbody>
	        	<tr>
	          		<td id="search-menu" rowspan="2" colspan="1">
	          			<h:form>
		          			<table id="menu-bar" cellpadding="0" cellspacing="1">
								<tbody>
							    	<tr>
							        	<td class="column-menu-title">
							        		<h:outputText value="#{msg['search.menu.left.title.filtraservico']}" />
							          	</td>
							        </tr>
							        <tr>
							          	<td class="column-menu-value">
							          		<ui:repeat var="servico" value="#{searchController.topServicos}">
							          			- <p:commandLink ajax="false" action="#{searchController.searchByServico}">
							          				<f:setPropertyActionListener value="#{servico.id}" target="#{searchController.servico.id}" />
							          			  	<h:outputText value="#{servico.nome}" styleClass="menu-sub-value" />
							          			  </p:commandLink><br/>							          			
							          		</ui:repeat>							          					          		
							          	</td>
							        </tr>
							        <tr>
							          	<td class="column-menu-title">
							          		<h:outputText value="#{msg['search.menu.left.title.filtraestado']}" />
							          	</td>
							        </tr>
							        <tr>
							          	<td class="column-menu-value">
							          		<ui:repeat var="estado" value="#{searchController.topEstados}">
							          			- <p:commandLink ajax="false" action="#{searchController.searchByEstado}">
							          				<f:setPropertyActionListener value="#{estado}" target="#{searchController.estado}" />
							          			  	<h:outputText value="#{estado.nome}" styleClass="menu-sub-value" />
							          			  </p:commandLink><br/>						          			
							          		</ui:repeat>	
							          	</td>
							        </tr>
							        <tr>
							          	<td class="column-menu-title">
							          		<h:outputText value="#{msg['search.menu.left.title.filtracidade']}" />
							          	</td>
							        </tr>
							        <tr>
							          	<td class="column-menu-value">
							          		<ui:repeat var="municipio" value="#{searchController.topMunicipios}">
							          			- <p:commandLink ajax="false" action="#{searchController.searchByMunicipio}">
							          				<f:setPropertyActionListener value="#{municipio.id}" target="#{searchController.municipio.id}" />
							          			  	<h:outputText value="#{municipio.nome}" styleClass="menu-sub-value" />
							          			  </p:commandLink><br/>							          			
							          		</ui:repeat>									          	
							          	</td>
							        </tr>
							        <tr>
							          	<td class="column-menu-title">
							          		<h:outputText value="#{msg['search.menu.left.title.filtrabairro']}" />
							          	</td>
							        </tr>
							        <tr>
							          	<td class="column-menu-value">
							          		<ui:repeat var="bairro" value="#{searchController.topBairros}">
							          			- <p:commandLink ajax="false" action="#{searchController.searchByBairro}">
							          				<f:setPropertyActionListener value="#{bairro}" target="#{searchController.bairro}" />
							          			  	<h:outputText value="#{bairro}" styleClass="menu-sub-value" />
							          			  </p:commandLink><br/>						          			
							          		</ui:repeat>	
							          	</td>
							        </tr>							        
							    </tbody>
							</table>
						</h:form>
	          		</td>	          		
	          		<td id="search-body">
	          			<ui:insert name="search-result">
							<ui:include src="/faces/site/xhtml/search-result.xhtml" />
						</ui:insert>	
	          		</td>
	        	</tr>
	      	</tbody>
		</table>
	</ui:composition>
</html>